<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFloor extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('floor', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('community_id')->comment('小区id');
            $table->string('number')->comment('楼号.栋数');
            $table->string('comment')->nullable()->comment('楼号.栋数');
            $table->string('unit')->nullable()->comment('单元');
            $table->string('layer_number')->nullable()->comment('层数');
            $table->string('households')->nullable()->comment('层数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     *
     */
    public function down()
    {
        Schema::dropIfExists('floor');
    }
}
